package stringBuilder;
//public StringBuilder insert(int offset, String str) {
//        super.insert(offset, str);
//        return this;
//    }
public class InsertDemo {
    public static void main(String[] args)
    {
        StringBuilder sb = new StringBuilder(",好好学习java");
        sb.insert(0,"活着就是为了");//从0位置插入
        System.out.println(sb);//输出：活着就是为了,好好学习java

    }
}
